package znet

import ziface "zinx/Ziface"

//封装用户请求，请求包括链接和数据
type Request struct {
	//已经和客户端建立好的链接
	conn  ziface.IConnection


	//客户端请求的数据
	msg ziface.IMessage
}


func(r* Request) GetConnection() ziface.IConnection {
	return r.conn
}

func(r* Request) GetData() []byte {

	return r.msg.GetData()
}



func(r *Request) GetMsgId() uint32 {

	return r.msg.GetMsgId()
}